﻿<Window x:Class="BloodGlucoseManagerApplication.CreateNewPatientWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	  xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" 
    Title="CreateNewPatientWindow" Height="454" Width="345" WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner" Background="#FF838383" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <Grid>
        <Label HorizontalAlignment="Left" Margin="14,24,0,0" VerticalAlignment="Top" Width="97" Height="29" Content="SSN"/>
        <Label HorizontalAlignment="Left" Margin="11,73,0,0" VerticalAlignment="Top" Width="102" Height="29" Content="Name"/>
        <TextBox Margin="127,29,47,0" VerticalAlignment="Top" Height="24" Text="" TextWrapping="Wrap" x:Name="textBoxSSN"/>
        <TextBox Margin="127,76,49,0" VerticalAlignment="Top" Height="23" Text="" TextWrapping="Wrap" x:Name="textBoxName"/>

        <GroupBox Margin="16.303,131,21,153" Header="Daily rythm">
            <Grid >
                <Grid.ColumnDefinitions>

                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="100" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Label Content="Morning"/>
                <Label Content="MidtDay" Grid.Row="1"/>
                <Label Content="Dinner" Grid.Row="2"/>
                <Label Content="Night" Grid.Row="3"/>

                <WindowsFormsHost  Grid.Column="1" >
                    <wf:DateTimePicker x:Name="morningDatePicker" ShowUpDown="true" Width="90"/>
                </WindowsFormsHost>
                <WindowsFormsHost  Grid.Column="1" Grid.Row="1" >
                    <wf:DateTimePicker x:Name="midtDayDatePicker" ShowUpDown="true"  Width="90"/>
                </WindowsFormsHost>
                <WindowsFormsHost  Grid.Column="1" Grid.Row="2" >
                    <wf:DateTimePicker x:Name="dinnerDatePicker" ShowUpDown="true" Width="90"/>
                </WindowsFormsHost>
                <WindowsFormsHost  Grid.Column="1" Grid.Row="3" >
                    <wf:DateTimePicker x:Name="nightDatePicker" ShowUpDown="true" Width="90"/>
                </WindowsFormsHost>




            </Grid>
        </GroupBox>
        <GroupBox Margin="16.303,0,21,63" VerticalAlignment="Bottom" Height="86" Header="Level Indicator">
            <Grid >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="100" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto" />

                </Grid.RowDefinitions>
                <Label Width="Auto" Height="Auto" Content="Low"/>
                <Label Width="Auto" Height="Auto" Content="Heigh" Grid.Row="1" />
                <TextBox  Grid.Column="1" Text="4" TextWrapping="Wrap" x:Name="textBoxLow"/>
                <TextBox   Grid.Column="1" Grid.Row="1" Text="9" TextWrapping="Wrap" x:Name="textBoxHigh"/>
            </Grid>
        </GroupBox>
        <Button HorizontalAlignment="Right" Margin="0,0,21,15" VerticalAlignment="Bottom" Width="87" Height="33" Content="Save" x:Name="buttonSave" Click="buttonSave_Click" />
        <Button Margin="127,0,112,15" VerticalAlignment="Bottom" Height="33" Content="Cancel" x:Name="buttonCancel" Click="buttonCancel_Click" />



    </Grid>
</Window>
